home *** CD-ROM | disk | FTP | other *** search
- Path: EU.net!sun4nl!xs4all!falstaff
- From: falstaff@xs4all.nl (Falstaff)
- Newsgroups: comp.lang.c
- Subject: Re: The size of a file
- Date: 27 Jan 1996 17:43:36 GMT
- Organization: XS4ALL, networking for the masses
- Message-ID: <4edo88$4c7@news.xs4all.nl>
- References: <4ebc03$4gv@gate.compart.fi>
- NNTP-Posting-Host: xs1.xs4all.nl
- X-Newsreader: NN version 6.5.0 #666 (NOV)
-
- Fredrik Sandstrom <fred@spider.compart.fi> writes:
-
- >This is driving me nuts. I can't find a simple way to get the size of a
- >disk file. This must be possible using the standard C library, but I
- >haven't figured out how!
-
- f=fopen()
- fseek(f,SEEK_END,0)
- ftell(f)
- fclose(f)
-
- done
- --
- "Life without a backbone is hardly worth consideration."
- ------------------------------------------------------------------------
- Frank A. Vorstenbosch +31-(70)-355 5241 falstaff@xs4all.nl
-